package com.iscale.service;

import com.iscale.model.entity.BaseFileInfo;
import com.baomidou.mybatisplus.service.IService;
import com.iscale.model.entity.BaseRegionInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 文件信息 服务类
 * </p>
 *
 * @author Andychen
 * @since 2017-03-10
 */
public interface BaseFileInfoService extends IService<BaseFileInfo> {

    /**
     * 保存文件至本地服务
     * @param multipartFile
     * @param rename
     * @return
     */
    public BaseFileInfo saveFileByLocalServer(MultipartFile multipartFile,String rename,String merchantNo) throws IOException;


    /**
     * 批量保存文件信息
     * @param multipartFiles
     * @return
     */
    public List<BaseFileInfo> saveFileInfos(MultipartFile[] multipartFiles,String merchantNo) throws IOException;
}
